import {defineStore} from "pinia";
import {onMounted, ref} from "vue";
import {getFriends} from "@/apis/slot.js";

export const getFriendStore = defineStore("friends",()=>{
    const friendsList = ref({})
    const friends = async ()=>{
        const res = await getFriends()
        friendsList.value = res.data
    }
    onMounted(() => friends())
    return {friends,friendsList}
})